require(["core", "jQuery", "coAjax", "hash_routie"], function(jSouper, $, coAjax, hash_routie) {
	hash_routie.on("newsmanager", function() {
		/*加载案例列表*/
		coAjax.get(appConfigPub.open.news_list, function(result) {
			App.set("$Cache.dotnar_news.list", result.result);
		});
	});
	App.set("$Event.admin.remove_news", function(e, vm) {
		coAjax.delete(appConfigAdmin.admin.remove_news, {
			news_id: vm.get("_id")
		}, function(result) {
			alert("success", "删除成功");
			App.set("$Cache.dotnar_news.list", result.result);
		},function (result) {
			alert("error", "删除失败，请联系开发者");
		});
	});
});